Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@babel/plugin-transform-export-namespace-from
Advanced tools
Compile export namespace to ES2015
The @babel/plugin-transform-export-namespace-from package is a Babel plugin that allows developers to use the export * as syntax in their JavaScript code, which is part of the ECMAScript 2020 (ES2020) specification. This syntax enables the re-exporting of all named exports from another module under a single namespace object.
Namespace export transformation
This feature allows you to re-export all named exports from a module as a single namespace object. It's useful for creating a single object that encapsulates all exports from a module, which can then be used elsewhere in your code.
export * as ns from './module';
This package is a proposal plugin for Babel that adds support for the export * as syntax before it was officially included in the ECMAScript specification. It serves a similar purpose to @babel/plugin-transform-export-namespace-from but is intended for use during the proposal stage.
This Babel plugin adds support for the export-from extension syntax, which includes export * as syntax as well as other export extensions. It's a broader plugin that encompasses the functionality of @babel/plugin-transform-export-namespace-from along with additional export-related transformations.
Compile export namespace to ES2015
See our website @babel/plugin-transform-export-namespace-from for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-export-namespace-from
or using yarn:
yarn add @babel/plugin-transform-export-namespace-from --dev
v7.25.9 (2024-10-22)
babel-parser
, babel-template
, babel-types
syntacticPlaceholders
mode (@liuxingbaoyu)babel-helper-compilation-targets
, babel-preset-env
ClassAccessorProperty
to prevent the no-undef
rule (@victorenator)babel-parser
, babel-types
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)FAQs
Compile export namespace to ES2015
The npm package @babel/plugin-transform-export-namespace-from receives a total of 10,250,913 weekly downloads. As such, @babel/plugin-transform-export-namespace-from popularity was classified as popular.
We found that @babel/plugin-transform-export-namespace-from demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.